package com.csust.automaticteach.model.vo.classes;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.csust.automaticteach.model.entity.Classes;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ClassesVO
 * @Description 班级vo对象
 * @Author 钰玟
 * @Date 2025/8/16 下午4:11
 * Version 1.0
 **/
@Data
public class ClassesVO implements Serializable {
    /**
     * id
     */
    private Long id;

    /**
     * 班级名称
     */
    private String className;

    /**
     * 班主任Id
     */
    private Long headTeacher;
    /**
     * 班级状态(1为启用/2为已毕业)
     */
    private Integer status;
    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public static ClassesVO objToVo(Classes classes) {
        ClassesVO classesVO = new ClassesVO();
        BeanUtil.copyProperties(classes, classesVO);
        return classesVO;
    }

}
